<?php

use think\facade\Env;

return [
    // 超级管理员用户名
    'administrator' => 'admin',

    // JWT加密key
    'jwt_key' => 'HGI&TC{pft>L,C`wFQ<&#ROW<k{Kxlt1<ryW(<r<#RHG',

    // AES加密key
    'aes' => [
        'key' => 'c922b15a7f3562a5',
        'iv' => '9512741612342671'
    ],
    //接口是否加密配置
    'aes_encrypt' => false,

    // 新增用户初始默认密码
    'default_pwd' => '123456',

    // 趣豆与现金兑换比例
    'ratio' => 1,

    //变成会员条件
    'cost_sum1' => 118,
    //变成VIP 条件
    'cost_sum2' => 299,

    //订单支付获取趣豆比例
    'order_ratio' => 0.9,

    //提现手续费用
    'deposit' => [
        //趣豆提现
        'bean' => [
            '_50' => 0.08,
            '_300' => 0.07,
            '_600' => 0.06,
            '_1000' => 0.05
        ],
        //现金提现
        'cash' => [
            '_50' => 0.08,
            '_300' => 0.07,
            '_600' => 0.06,
            '_1000' => 0.05
        ]
    ],

    // token设置
    'token_set' => [
        // 后台
        'admin' => [
            'access_expires' => 2 * 3600,
            'refresh_expires' => 24 * 3600,
            'white_path' => [
                'app_admin/account/token',
                'app_admin/account/logout'
            ]
        ],
        // 商户
        'store' => [
            'access_expires' => 2 * 3600,
            'refresh_expires' => 24 * 3600,
            'white_path' => [
                'app_store/account/token',
                'app_store/account/logout'
            ]
        ],
        // 前台
        'index' => [
            'access_expires' => 30 * 24 * 3600
        ]
    ],

    // 阿里云oss配置
    'aliyun_oss' => [
        'accessKeyId' => 'LTAIbhkqY3OerRwj',
        'accessKeySecret' => 'cMUPZqCnP6h6EbvypOLhdv4mrLGPHv',
        'endpoint' => 'oss-cn-beijing.aliyuncs.com',
        'bucket' => 'yinjia',
        'url' => 'https://yinjia.oss-cn-beijing.aliyuncs.com'
    ],
    // 阿里云sms配置
    'aliyun_sms' => [
        'accessKeyId' => 'LTAI5tEbczrtSE8K2dQ6uTfN',
        'accessKeySecret' => 'qFtOl4PhxYXuN7ArpdVEg9T0V68Wh7',
        'regionId' => 'cn-hangzhou',
        'TemplateCode' => 'SMS_254286254',
        'SignName' => "海之礼",
    ],
    // 微信小程序配置
    'wx_weapp' => [
        //胖瓜
        'app_id' => Env::get('wxweapp.app_id', 'wx4a6e91db1f92ac8f'),
        'secret' => Env::get('wxweapp.secret', 'e43795caa73f889d63aafccfb75e8583')
    ],
    // 微信支付配置
    'wx_pay' => [
        'app_id' => Env::get('payment.app_id', 'wx4a6e91db1f92ac8f'),
        'mch_id' => Env::get('payment.mch_id', '1610268462 '),
        'key' => Env::get('payment.key', '34c8c64b06ca6e949e143ab40fc47c67'),
        'key3' => Env::get('payment.key3', ''),
        'serial' => Env::get('payment.serial', ''),
        'key_path' => Env::get('payment.key_path', ''),
        'cert_path' => Env::get('payment.cert_path', ''),
        'cert_path3' => Env::get('payment.cert_path3', ''),
        'verify_cert_path3' => Env::get('payment.verify_cert_path3', ''),
        'key_path3' => Env::get('payment.key_path3', ''),
        'notify_url' => Env::get('payment.notify_url', ''),//微信回调
        'notify_url_refund' => Env::get('payment.notify_url_refund', '')//退款回调
    ],

    // 快递鸟
    'kdn' => [
        'id' => '1777977',
        'appkey' => 'dbe4c584-0651-45f5-aefc-e0437c7a03ee',
        'url' => 'http://api.kdniao.com/Ebusiness/EbusinessOrderHandle.aspx',
    ],

    // 中午打印机配置
    // 'zhongwuyun'=>[
    //     'appid'=>'8000297',
    //     'appsecret'=>'0ac546e876bf40057dc9243a41a92aef',
    //     'apiurl'=>'http://api.zhongwuyun.com'
    // ],

    // 腾讯移动分析
    'qq_mta' => [
        //文乡贡酒
        'appid' => Env::get('qqmta.appid', '500708428'),
        'eventid' => Env::get('qqmta.eventid', '500708645'),
        'secret_key' => Env::get('qqmta.secret_key', '6d02101733fb987a9dd8d7c62c611a19'),
        'apiurl' => 'https://openapi.mta.qq.com/wx/v1'
    ],

    //腾讯地图
    "qq_map" => [
        "key" => "VRNBZ-6ILLD-JYH46-PKOCO-VLHQF-YLFO4",//地图秘钥
    ]
];
